import request from '@/utils/request'
import {HOST} from '@/constants'
import qs from 'qs'

export function enterpriseLogin(data) {
  return request({
    url: `${HOST}/login/enterprise`,
    method: 'post',
    data: qs.stringify(data)
  })
}

export function bankLogin(data) {
  return request({
    url: `${HOST}/login/bank`,
    method: 'post',
    data: qs.stringify(data)
  })
}

export function adminLogin(data) {
  return request({
    url: `${HOST}/login/admin`,
    method: 'post',
    data: qs.stringify(data)
  })
}
